package cz.myslivec.slovicka.factory;

import java.io.Serializable;
import java.util.List;

import javax.persistence.EntityManager;

import org.jboss.seam.annotations.Factory;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.log.Log;

@Name("vocableFactories")
public class VocableFactories implements Serializable {
	private static final long serialVersionUID = 2950278766126591013L;

	@In
	EntityManager entityManager;

	@Logger
	Log log;

//	@Factory("modelList")
//	public List<Lesson> getLessons() {
//		List<ModelVozu> ret = entityManager.createQuery("select mv from ModelVozu mv order by mv.nazev").getResultList();
//		return ret;
//	}
}
